package com.koko.mapper;

import com.github.pagehelper.Page;
import com.koko.game.entity.GameView;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GameViewMapper {
    void insert(GameView gameView);

    void deleteByGameId(Long gameId);

    Page<GameView> getGameViewPageByGameId(Long gameId);

    void deleteById(Long id);
    GameView getById(Long id);

    List<GameView> getGameImageViewLimitInFourByGameId(Long gameId);
}
